package com.wing.product.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 签收订单详情
 */
@Schema(description="签收订单详情")
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "warehouse_sign_order_detail")
public class WarehouseSignOrderDetail extends BaseEntity {
    @TableField(value = "order_id")
    @Schema(description="订单id")
    private Integer orderId;

    @TableField(value = "order_code")
    @Schema(description="订单编号")
    private String orderCode;

    @TableField(value = "shipment_order_id")
    @Schema(description="发货单id")
    private Long shipmentOrderId;

    @TableField(value = "shipment_order_code")
    @Schema(description="发货订单编号")
    private String shipmentOrderCode;

    @TableField(value = "sign_order_id")
    @Schema(description="")
    private Long signOrderId;

    @TableField(value = "sign_order_code")
    @Schema(description="")
    private String signOrderCode;

    @TableField(value = "warehouse_product_id")
    @Schema(description="客户物料id")
    private Long warehouseProductId;

    @TableField(value = "warehouse_product_code")
    @Schema(description="客户物料编号")
    private String warehouseProductCode;

    @TableField(value = "product_type_id")
    @Schema(description="产品类型 取 pro_product_type表")
    private Long productTypeId;

    @TableField(value = "product_producer_id")
    @Schema(description="生产商id pro_product_producer")
    private Long productProducerId;

    @TableField(value = "product_brand_id")
    @Schema(description="产品品牌 取 pro_product_brand表")
    private Long productBrandId;

    @TableField(value = "product_unit_id")
    @Schema(description="主单位")
    private Long productUnitId;

    @TableField(value = "total_weight")
    @Schema(description="合计重量")
    private Double totalWeight;

    @TableField(value = "gross_weight")
    @Schema(description="重量")
    private Double grossWeight;

    @TableField(value = "net_weight")
    @Schema(description="重量")
    private Double netWeight;

    @TableField(value = "total_quantity")
    @Schema(description="发货数量")
    private Double totalQuantity;

    @TableField(value = "total_price")
    @Schema(description="合计价格")
    private Double totalPrice;

    @TableField(value = "price")
    @Schema(description="单价")
    private Double price;

    @TableField(exist = false)
    private Long shipmentOrderDetailId;
}